﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MVVMPattern.Models
{
    public class DataModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler? PropertyChanged;

        private int value1;

        public int Value1
        {
            get { return value1; }
            set
            {
                value1 = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Value1)));
            }
        }

        private int value2;

        public int Value2
        {
            get { return value2; }
            set
            {
                value2 = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Value2)));
            }
        }


        private int value3;

        public int Value3
        {
            get { return value3; }
            set
            {
                value3 = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Value3)));
            }
        }

    }
}

